package com.xls.box2023.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.xls.box2023.R;

import androidx.annotation.NonNull;

/**
 * @author lhx
 * @description:
 * @date : 2024/3/11 16:54
 */
public class UserRegErrorDialog extends Dialog {

    TextView textView;

    ImageView iv_close;
    public UserRegErrorDialog(@NonNull Context context) {
        super(context);
        setCancelable(false);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setContentView(R.layout.dialog_ok);
        getWindow().setBackgroundDrawableResource(android.R.color.transparent);
        initView();
    }

    private void initView() {
        textView=findViewById(R.id.dialog_text);
        iv_close = findViewById(R.id.iv_close);
        iv_close.setVisibility(View.GONE);
        textView.setText("检测到您没有上级推荐人\n请联系您的代理");
    }
}
